// BusCollection_BPA.cpp: implementation of the CBusCollection_BPA class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "../../Include/Dat/BusCollection_BPA.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CBusCollection_BPA::CBusCollection_BPA()
{

}

CBusCollection_BPA::~CBusCollection_BPA()
{

}

CBus_BPA* CBusCollection_BPA::GetFirstBus()
{
	return (CBus_BPA*)CCardCollection_BPA::GetFirstCard();
}

CBus_BPA* CBusCollection_BPA::Traverse(CBus_BPA *pBus, int nDirection)
{
	return (CBus_BPA*)CCardCollection_BPA::Traverse(pBus,nDirection);
}

CBus_BPA* CBusCollection_BPA::GetBus(char *strBusName, double dkV)
{
	CBus_BPA tempBus;
	strcpy(tempBus.m_strName,strBusName);
	tempBus.m_dkV = dkV;
	return (CBus_BPA*)CCardCollection_BPA::GetCard(&tempBus);
}
